package com.oig.base.api.factory;

import com.oig.base.api.ParamService;
import com.oig.base.api.fallback.ParamServiceFallBackImpl;
import org.springframework.cloud.openfeign.FallbackFactory;

public class ParamFallBackFactory implements FallbackFactory<ParamService> {

    @Override
    public ParamService create(Throwable cause) {
        ParamServiceFallBackImpl paramServiceFallBack = new ParamServiceFallBackImpl();
        paramServiceFallBack.setCause(cause);
        return paramServiceFallBack;
    }

}
